package admin

import (
	"oc_saas/model/base"

	"github.com/google/uuid"
)

// 账号表
type User struct {
	base.IDColumn
	OnlyID   uuid.UUID `json:"only_id" gorm:"not null;uniqueIndex;comment:用户的唯一UUID"`
	Username string    `json:"username" gorm:"column:username;type:varchar(20);size:20;uniqueIndex;comment:用户名称;not null"`
	Password string    `json:"password" gorm:"type:varchar(64);size:(64);comment:登录密码"`
	Avatar   string    `json:"avatar" gorm:"default:'';comment:用户头像"`
	RoleID   uint      `json:"-" gorm:"not null;comment:角色ID"`
}
